//
//  Status.swift
//  weibo 666
//
//  Created by mac on 15/11/10.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class Status: NSObject {
    
    ///微博ID
    var id: Int64 = 0
    ///微博创建时间
    var created_at: String?
    ///微博来源
    var source: String?
    ///微博内容
    var text: String?
    ///用户模型
    var user: User?
    
    //字典转模型
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)

    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    override var description: String{
        
        let keys = ["id","created_at","source","text","user"]
        return dictionaryWithValuesForKeys(keys).description
    }
    
}
